package icu.zqyhdm.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description 文章文章实体类
 * @Author lifu
 * @Date 2021/6/22 14:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("article")
@ApiModel(description = "文章文章")
public class Article extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文章标题")
    @TableField(value = "title")
    private String title;

    @ApiModelProperty(value = "作者id")
    @TableField(value = "author_id")
    private Integer authorId;

    @ApiModelProperty(value = "内容")
    @TableField(value = "content")
    private String content;

    @ApiModelProperty(value = "首图")
    @TableField("first_picture")
    private String firstPicture;

    @ApiModelProperty(value = "文章类型id")
    @TableField("type_id")
    private Integer typeId;

    @ApiModelProperty(value = "简要描述")
    @TableField(value = "description")
    private String description;

    @ApiModelProperty(value = "置顶(1:置顶，0:非置顶)")
    @TableField("top")
    private Integer top;

    @ApiModelProperty(value = "审核状态(1:通过，0:待审核)")
    @TableField("status")
    private Integer status;
}
